package com.bookmall.search.feign;

import com.ruoyi.common.core.web.domain.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Description:
 * @Author 胡菜鸡
 * @Create 2022-04-10-17:32
 */
@FeignClient("bookmall-product")
public interface ProductFeignService {

    /**
     * 获取所有展示的分类
     * @author 胡菜鸡
     * @date 2022/4/10 17:34
     */
    @GetMapping("/product/category/list/treeShowing")
    public AjaxResult listWithTreeForStatus();

    @GetMapping("/item/{bookId}.html")
    public String bookItem(@PathVariable("bookId") String bookId);

    /**
     * 获取分类详细信息
     * @author 胡菜鸡
     * @date 2022/4/14 19:11
     */
    @GetMapping(value = "/product/category/{id}")
    public AjaxResult getInfo(@PathVariable("id") String id);
}
